Fix crash with invisible text and overlays (Bug#7016).
authorChong Yidong <cyd@stupidchicken.com>
Mon, 6 Dec 2010 06:54:52 +0000 (01:54 -0500)
committerChong Yidong <cyd@stupidchicken.com>
Mon, 6 Dec 2010 06:54:52 +0000 (01:54 -0500)
commit15572a48ec1493168d0c534b5a32a779e15a6c3f
tree99c697a3d9fd36df78a729a61fea3d0b286eeba2
parent3795af830e5d066a0f3f71cc37bf32bc8c0a99bb
Fix crash with invisible text and overlays (Bug#7016).

* src/dispextern.h (struct it): New member overlay_strings_charpos.

* src/xdisp.c (next_overlay_string, load_overlay_strings): Record the
charpos where we computed n_overlay_strings.
(next_overlay_string): Load overlay strings at recorded position,
which may not be the same as the iterator's charpos (Bug#7016).
lisp/mail/rmail.el
src/ChangeLog
src/dispextern.h
src/xdisp.c